﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" Async="true"  CodeBehind="EditPost.aspx.cs" Inherits="NhanAi.Admin.EditPost" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditor" %>
<%@ Register Src="~/Admin/PostAtt.ascx" TagPrefix="uc2" TagName="PostAtt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <script type="text/javascript" src="../Scripts/filebrowser.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="formMain" runat="server">
    <h3>Thêm bài viết</h3>
        <asp:HiddenField ID="hdnId" runat="server"  />
        <table class="full-width" style="line-height:35px; vertical-align:top;">
            <tr>
                <td class="pan-label important">Tiêu đề</td>
                <td class="pan-label important">Title</td>
            </tr>
            <tr>
                <td class="auto-style1">
                    <asp:TextBox ID="txtTitle" runat="server" CssClass="post-title-input"></asp:TextBox>
                </td>
                <td class="auto-style1">
                    <asp:TextBox ID="txtTitleEn" runat="server" CssClass="post-title-input"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="pan-label">Nội dung</td>
                <td class="pan-label">Content</td>
            </tr>
            <tr>
                <td class="auto-style1"><FCKeditor:FCKeditor ID="PostContent" runat="server" BasePath="~/fckeditor/" Width="95%" Height="300" ToolbarSet="MyCustom"></FCKeditor:FCKeditor></td>
                <td class="auto-style1"><FCKeditor:FCKeditor ID="PostContentEn" runat="server" BasePath="~/fckeditor/" Width="95%" Height="300" ToolbarSet="MyCustom"></FCKeditor:FCKeditor></td>
            </tr>
            <tr>
                <td class="pan-label">Thuộc tính</td>
                <td class="pan-label">Hình đại diện</td>
            </tr>
            <tr>
                <td><uc2:PostAtt ID="pstAttribute" runat="server"></uc2:PostAtt></td>
                <td rowspan="3" style="vertical-align:top;">
                   <input id="txtImage"  name="txtImage" type="text" value="<%=ImageUrl %>" class="inp-form" />
            <input id="btnBrowseImage"  type="button" value="Browse" onclick="browseFile()" class="pan-button" /><br />
                    <img src="<%=ImageUrl %>" id="imgRepresentimage" alt="feature image" class="post-thumb-image" />
                </td>
            </tr>
            <tr>
                <td class="pan-label important">Chủ đề:</td>
            </tr>
            <tr>
                <td>
                    <div class="scroll-pane">
                        <ul class="scroll-region none-list">
                            <asp:Repeater ID="rptTaxonomies" runat="server">
                                <ItemTemplate>
                                    <li class="select-list-item"><input type="checkbox" <%#HasTaxonomy((int)Eval("Id"))?"checked='checked'":"" %> name="taxonomy" value="<%#Eval("Id") %>" /><%#Eval("TermName") %></li>
                                </ItemTemplate>
                            </asp:Repeater>                        

                        </ul>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="pan-label important">Trạng thái</td>
                <td style="vertical-align:top;">
                    Gửi email thông báo</td>
            </tr>
            <tr>
                <td>
                    <asp:DropDownList ID="cmbStatus" runat="server" CssClass="dropdown">
                    </asp:DropDownList>
                </td>
                <td style="vertical-align:top;">
                    <asp:CheckBox ID="chkSendMail" runat="server" Text="Gửi" />
                </td>
            </tr>
            <tr>
                <td>
                    Bảo vệ:
                    <asp:CheckBox ID="chkProtected" runat="server" />
                </td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" OnClick="btnUpdateClick" CssClass="pan-button submit" />
                    <asp:Button ID="btnReset" runat="server" Text="Xóa" CssClass="pan-button" />
                </td>
                <td>&nbsp;</td>
            </tr>
        </table>
    </form>
</asp:Content>
